

package cn.shengchao.examstar.product.infrastructure.dao;

import cn.shengchao.examstar.comment.acl.ports.repositories.message.CourseListDto;
import cn.shengchao.examstar.product.acl.ports.repositories.message.MemberCourseOrder;
import cn.shengchao.examstar.product.infrastructure.dao.po.TProductCourse;
import cn.shengchao.examstar.rpc.product.req.CourseQueryPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ProductCourseDao extends BaseMapper<TProductCourse> {
    List<CourseListDto> findCourseList(@Param("query") CourseQueryPage courseQueryPage);

    List<MemberCourseOrder> getMemberCourse(@Param("userId") Long userId, @Param("courseName") String courseName, @Param("sort") String sort);

    java.util.Map<String,BigDecimal> findCourseListSumPrice(@Param("query")CourseQueryPage courseQueryPage);

    List<Long> selectCourseIdsByPrefixSpecTag(String versionPrefix, String specTag);
}
